Skip to main content

DescribeVpnGateways

Description

call the DescribeVpnGateways interface to query the created VPN gateway.

Request Method

POST

Request Path

/apsara/route/Vpc/DescribeVpnGateways

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
StatusBODYstringNoinitstatus of VPN gateway, value: init : initialization. provisioning: in preparation. active : normal. updating : Updating. deleting : being deleted.
VpcIdBODYstringNovpc-bp1ub1yt9cvakoelj****ID of VPC to which VPN gateway belongs.
PageSizeBODYintegerNo10The number of rows per page during paging query, the maximum value is 50, the default value is 10.
VpnGatewayIdBODYstringNovpn-bp1q8bgx4xnkm2ogj****VPN gateway ID.
PageNumberBODYintegerNo1page number of the list, the default value is 1.
regionIdBODYstringYesNo sample value for this parameter.region id
RegionIdBODYstringYescn-qingdao-env66-d01the region ID where the VPN gateway is located. you can obtain the region by calling DescribeRegions interface ID.
BusinessStatusBODYstringNoNormalthe payment status of the VPN gateway. Value: Normal : normal. FinancialLocked: overdue lock.
versionBODYstringNo2016-01-01version of api

Return data

NameTypeSample valueDescription
RequestIDstring1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DCRequest id

Example

Successful Response example

{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}